﻿#include "mybook.h"

myBook::myBook(QString name, QString id, QString author, QString publicData, QString press, QString count)
{
    m_name = name;
    m_id = id;
    m_author = author;
    m_publicData = publicData;
    m_press = press;
    m_count = count;
}

void myBook::setName(QString name)
{
    m_name = name;
}

void myBook::setId(QString id)
{
    m_id = id;
}

void myBook::setAuthor(QString author)
{
    m_author = author;
}

void myBook::setPublicData(QString publicdata)
{
    m_publicData = publicdata;
}

void myBook::setPress(QString press)
{
    m_press = press;
}

void myBook::setCount(QString count)
{
    m_count = count;
}

QString myBook::getName()
{
    return m_name;
}

QString myBook::getId()
{
    return m_id;
}

QString myBook::getAuthor()
{
    return m_author;
}

QString myBook::getPublicData()
{
    return m_publicData;
}

QString myBook::getPress()
{
    return m_press;
}

QString myBook::getCount()
{
    return m_count;
}
